package com.ruoyi.network.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;

/**
 * 状态枚举定义
 *
 * @author Administrator
 */
@Getter
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum BaseStatusEnum {
    ENABLE("0", "启用"),
    DISABLE("1", "停用"),
    ;
    @EnumValue
    private final String code;
    private final String info;

    BaseStatusEnum(String code, String info) {
        this.code = code;
        this.info = info;
    }
}
